﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UI/HRManagerUI/HrManager.Master" AutoEventWireup="true" CodeBehind="EditEmployeeContacts.aspx.cs" Inherits="HRM.UI.HRManagerUI.EmpModule.EditEmployeeContacts" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContentBody" runat="server">

    <script type="text/javascript" language="javascript">


        function validate() {

            if (document.getElementById("<%=txtFirstcontact.ClientID%>").value == "") {
                document.getElementById("<%=msgLabel.ClientID%>").textContent = ("Please Enter Employee First Contact !");
                document.getElementById("<%=txtFirstcontact.ClientID%>");
                document.getElementById("<%=txtFirstcontact.ClientID%>").focus();
                return false;
            }
            return true;

        }

    </script>
    <fieldset style="text-align: center">
        <legend>Contact Info</legend>
        <table class="TBEditContactSB">
            <tr>
                <td colspan="2" class="TDforSereachbox">
                    Employee Code(Ex:XXX101)
                    <input type="text" id="txtEmployeeCode" runat="server" /><input id="Submit1" type="submit"
                        value="Search" runat="server" onserverclick="SearchEditContact" />
                </td>
            </tr>
            <tr>
                <td colspan="2" class="msgLabeltd">
                    <asp:Label runat="server" ID="msgLabel" CssClass="msgTxt"></asp:Label>
                </td>
            </tr>
        </table>
        <div id="searchEditcontacdiv" runat="server">
            <table class="ContactInfoTB">
                <tr id="textboxCode" runat="server">
                    <td class="Label">
                        Employee Code
                    </td>
                    <td class="Field">
                        <input type="text" runat="server" id="txtEmpCode" class="textboxinput" readonly="readonly" /><span
                            class="estaricStar">*</span>
                    </td>
                </tr>
                <tr>
                    <td class="Label">
                        First Contact
                    </td>
                    <td class="Field">
                        <input type="text" runat="server" id="txtFirstcontact" class="textboxinput" /><span
                            class="estaricStar">*</span>
                    </td>
                </tr>
                <tr>
                    <td class="Label">
                        Second Contact
                    </td>
                    <td class="Field">
                        <input type="text" runat="server" id="txtSecondContact" class="textboxinput" />
                    </td>
                </tr>
                <tr>
                    <td class="Label">
                        Emergency Contact Person
                    </td>
                    <td class="Field">
                        <input type="text" runat="server" id="txtEmergencyperson" class="textboxinput" />
                    </td>
                </tr>
                <tr>
                    <td class="Label">
                        Emergency Contact Number
                    </td>
                    <td class="Field">
                        <input type="text" runat="server" id="txtEmergencyNumber" class="textboxinput" /><span
                            class="estaricStar">*</span>
                    </td>
                </tr>
                <tr>
                    <td class="Label">
                        Present Address
                    </td>
                    <td class="Field">
                        <textarea runat="server" id="txtPresentAddress" cols="14" rows="2" class="inputTextarea"></textarea><span
                            class="estaricStar">*</span>
                    </td>
                </tr>
                <tr>
                    <td class="Label">
                        Permanent Address
                    </td>
                    <td class="Field">
                        <textarea runat="server" id="txtPermanentAddress" cols="14" rows="2" class="inputTextarea"></textarea><span
                            class="estaricStar">*</span>
                    </td>
                </tr>
                <tr>
                    <td class="Field" colspan="2" style="text-align: center">
                        <input id="btnNext" type="submit" runat="server" value="Update" onserverclick="UpdateEditContact"
                            onclick="return validate()" />
                    </td>
                </tr>
            </table>
        </div>
    </fieldset>
</asp:Content>
